Skip to content

docs: document image/figure float and alignment#1

Closed
CybotTM wants to merge 5 commits intomainfrom
docs/image-float-alignment
Closed

docs: document image/figure float and alignment#1
CybotTM wants to merge 5 commits intomainfrom
docs/image-float-alignment

Conversation

@CybotTM
Copy link
Copy Markdown
Owner

@CybotTM CybotTM commented Feb 12, 2026

Summary

  • Document the image/figure float and alignment feature from render-guides PR #1174
  • Add :class: and :align: to the optional parameters list with cross-references
  • Add new section covering CSS class approach (float-left/float-right), :align: option, clearing floats (rst-class:: clear-both), and responsive behavior
  • Include three live examples (Examples 8–10): figure float-left, figure align-right, image float-left with shadow
  • Add best practices for floating

Context

The render-guides 0.37.0 release will add CSS float/alignment support for images and figures. This PR adds the corresponding user documentation.

Test plan

  • Verify RST renders correctly (examples display floated images with wrapping text)
  • Check cross-references (:ref:image-float-alignment) resolve from the parameters list
  • Confirm example numbering continues correctly from existing Examples 1–7

franzholz and others added 5 commits January 4, 2026 15:01
…-Documentation#503)

* Document image zoom and lightbox features

Add comprehensive documentation for the new image zoom/lightbox feature
available in the TYPO3 documentation theme. Extension authors can now
use CSS classes to enable different zoom modes on figures and images.

Coverage includes:
- Five zoom modes: lightbox, gallery, inline, lens, and css-only
- Practical RST examples for each mode
- Accessibility features (keyboard navigation, ARIA, screen readers)
- Best practices and use case guidance
- JavaScript-free fallback option

This enables extension authors to enhance image viewing in their
documentation without requiring custom JavaScript or external plugins.

* Fix keyboard navigation docs for Inline and Lens modes

- Inline zoom has full keyboard support: Tab, +/-, arrows, ESC/0
- Lens mode has keyboard activation: Tab, Enter/Space, arrows, ESC

* docs: update zoom syntax to use :zoom: option instead of class

* docs: add zoom-factor option and version note

- Document :zoom-factor: option for lens mode magnification
- Add versionadded directive noting feature requires v0.2.0+

* fix: correct render-guides version to 0.36.0

* docs: add :zoom: lightbox to standard image examples

Per review feedback, add :zoom: lightbox to the basic examples
so users copying them will use zoom by default for screenshots.
…cumentation#506)

- Example 1: Remove :zoom: lightbox (demonstrates :target: for external links)
- Example 2: Remove :target: (demonstrates :zoom: lightbox for zoom functionality)

The :target: and :zoom: options conflict with each other. This change
provides clear examples of both features without conflict.
* Fix escape character notation in RstCheatSheet

Is the backslash working by this change?

* Apply suggestion from @linawolf

* Apply suggestion from @linawolf

---------

Co-authored-by: Lina Wolf <48202465+linawolf@users.noreply.github.com>
Add documentation for the float and alignment feature introduced in
render-guides 0.37.0 (PR #1174). Covers CSS class approach
(:class: float-left/float-right), the :align: option on figures,
clearing floats with rst-class:: clear-both, and responsive behavior.

Includes three live examples (Examples 8-10) and best practices.
@CybotTM
Copy link
Copy Markdown
Owner Author

CybotTM commented Feb 12, 2026

Moved to netresearch#1 for Copilot review

@CybotTM CybotTM closed this Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants